package com.jiaming.employee.attendance.bean.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author dragon
 * @create 2021-05-14 16:45
 */
@ApiModel(description = "打卡记录")
@Data
public class Attendance {
    @ApiModelProperty(value = "打卡表ID",required =false,example = "1")
    private Integer id;
    @ApiModelProperty(value = "部门ID",required =true,example = "1")
    @JsonProperty("dep_id")
    private Integer depId;
    @ApiModelProperty(value = "员工ID",required =true,example = "1")
    @JsonProperty("emp_id")
    private Integer empId;
    @ApiModelProperty(value = "上班打卡时间")
    @JsonProperty("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "下班打卡时间")
    @JsonProperty("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
